package list;

/**
 * @Auther: liwenhao
 * @Date: 2022/5/12 16:19
 * @Description:
 */
public class Web<T> {

    TowWayLinkList<T> list = new TowWayLinkList<>();

    public void add(T name){
        list.insert(name);
    }

    public T back(int i){
        T t = list.get(i-1);
        return t;
    }

    public T forward(int i){
        T t = list.get(i+1);
        return t;
    }
}
